<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:if test="${export!=null}">
<%    
response.setContentType("application/xls");    
response.setHeader("Content-Disposition", "inline; filename=\"test.xls\"");    
%> 
</c:if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">

  <head>
   	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/sorttable.js"></script>
<script src="js/main.js"></script>
<script src="js/qy.js"></script>
  </head>
   
  <body>
<div style="display: none;" id="PageHeader" class="PageHeader"></div>
<input type="submit" name="button" id="button" value="查看统计图" onClick="location='ryqk.do?xian=${xian }&xiang=${xiang }&cun=${cun }&falg=1&sname=${sname }'" />
<input type="submit" name="button" id="button" value="导出统计表" onClick="location='ryqk.do?xian=${xian }&xiang=${xiang }&cun=${cun }&export=1&sname=${sname }'" />
<table class="TableTop" width="100%">
  <tbody><tr>
      <td class="left"></td>
      <td class="center subject">计生人员情况统计表　${typename}</td>
      <td class="right"></td>
   </tr>
</tbody></table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="sortable TableBlock no-top-border">
<thead>
  <tr class="title_text">
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  1, true);">&nbsp;</td>
    <td colspan="16" align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);">学历比例</td>
    <td colspan="10" align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);">年龄结构</td>
    <td colspan="4" align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);">性别比</td>
    <td align="center" colspan="2" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);">&nbsp;</td>
    </tr>
  <tr class="title_text">
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  1, true);">人员属性</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">初中</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">高中</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">中专</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">大专</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">本科</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">研究生</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">博士</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">硕士</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">20-29</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">30-39</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">40-49</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">50-59</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">60-69</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">男</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">女</td>
    <td align="center" class="TableData" onClick="this.blur(); return sortTable('offTblBdy',  2, true);" colspan="2">党员人数</td>
  </tr>
  </thead>
  <TBODY >
  <c:forEach var="l" items="${list}">
  <tr>
    <td align="center" class="TableData">${l.rysx}</td>
    <td align="center" class="TableData">${l.czrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.czrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.gzrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.gzrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.zzrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.zzrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.dzrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.dzrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.bkrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.bkrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.yjsrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.yjsrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.bsrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.bsrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.ssrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.ssrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.nl1}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.nl1/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.nl2}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.nl2/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.nl3}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.nl3/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.nl4}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.nl4/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.nl5}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.nl5/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.xbnan}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.xbnan/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.xbnv}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.xbnv/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    <td align="center" class="TableData">${l.dyrs}</td>
	<td align="center" class="TableData"><c:if test="${l.zrs==0}">0</c:if><c:if test="${l.zrs>0}"><fmt:formatNumber value="${l.dyrs/l.zrs*100}" pattern="#" minFractionDigits="0" ></fmt:formatNumber></c:if>%</td>
    </tr>
  </c:forEach>
    <tr>
    <td align="center" class="TableData">总计</td>
    <td align="center"  class="TableData">${colsCount.czrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.gzrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.zzrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.dzrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.bkrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.yjsrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.bsrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.ssrs}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.nl1}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.nl2}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.nl3}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.nl4}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.nl5}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.xbnan}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.xbnv}</td>
    <td align="center"  class="TableData"></td>
    <td align="center"  class="TableData">${colsCount.dyrs}</td>
    <td align="center"  class="TableData"></td>
  </tr>
  </TBODY>
</table>

<c:if test="${fn:length(list)==0}">
无数据
</c:if>
  
  </body>
</html>